package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_xiuxian_pvp_place_seize", desc = "凡人修仙传-宝地占领日志", autoSave = true, uploadCk = true, isCross = true)
public class LogXiuXianPvpPlaceSeize extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "宗门id")
    private int campId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "抢占宝地")
    private int placeId;

    @FieldTypeAnnotation(desc = "宝地丢失方式 1被抢  2系统结算")
    private int type;

    @FieldTypeAnnotation(desc = "被抢占时间")
    private Date seizeTime;

    @FieldTypeAnnotation(desc = "占领持续时间/s")
    private long totalTime;

    @FieldTypeAnnotation(desc = "产出多少积分")
    private long seizeScore;

    public LogXiuXianPvpPlaceSeize(int activityId, int campId, int round, int placeId, int type, Date seizeTime, long totalTime, long seizeScore) {
        this.activityId = activityId;
        this.campId = campId;
        this.round = round;
        this.placeId = placeId;
        this.type = type;
        this.seizeTime = seizeTime;
        this.totalTime = totalTime;
        this.seizeScore = seizeScore;
    }

    @Override
    public long getUserId() {
        return 0;
    }
}
